package com.jhhc.RHDB.Data.Pojo;

import com.fasterxml.jackson.annotation.JsonInclude;


import java.util.ArrayList;
import java.util.List;



public class Sensors_NewsData {

    // 传感器名称
    private String sensorName;

    // 传感器类型
    private SensorType sensorType;

    //取数码
    private String datacode;

    // 数据集合
    private Data newesdata;

    //告警状态
    private String alarmlevel;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    //警戒潮位
    private String distanceAlert;
    //颜色
    private String alarmColor;

    public String getAlarmColor() {
        return alarmColor;
    }

    public void setAlarmColor(String alarmColor) {
        this.alarmColor = alarmColor;
    }

    public String getDistanceAlert() {
        return distanceAlert;
    }

    public void setDistanceAlert(String distanceAlert) {
        this.distanceAlert = distanceAlert;
    }

    // 数据集合
    private List<RainStatictisData> rainStatictisData;


    public String getSensorName() {
        return sensorName;
    }

    public void setSensorName(String sensorName) {
        this.sensorName = sensorName;
    }

    public SensorType getSensorType() {
        return sensorType;
    }

    public void setSensorType(SensorType sensorType) {
        this.sensorType = sensorType;
    }

    public String getDatacode() {
        return datacode;
    }

    public void setDatacode(String datacode) {
        this.datacode = datacode;
    }



    public String getAlarmlevel() {
        return alarmlevel;
    }

    public void setAlarmlevel(String alarmlevel) {
        this.alarmlevel = alarmlevel;
    }

    public Data getNewesdata() {
        return newesdata;
    }

    public void setNewesdata(Data newesdata) {
        this.newesdata = newesdata;
    }

    public List<RainStatictisData> getRainStatictisData() {
        return rainStatictisData;
    }

    List<RainStatictisData> rainStatictisData1 = new ArrayList<>();
    public void setRainStatictisData(RainStatictisData pptnData) {
        this.rainStatictisData = rainStatictisData1;
        rainStatictisData1.add(pptnData);
    }
    public void setRainStatictisData(List<RainStatictisData> rainStatictisData) {
        this.rainStatictisData = rainStatictisData;

    }


    @Override
    public String toString() {
        return "Sensors_NewsData{" +
                "sensorName='" + sensorName + '\'' +
                ", sensorType=" + sensorType +
                ", datacode='" + datacode + '\'' +
                ", newesdata=" + newesdata +
                ", alarmlevel='" + alarmlevel + '\'' +
                ", distanceAlert='" + distanceAlert + '\'' +
                ", rainStatictisData=" + rainStatictisData +
                ", rainStatictisData1=" + rainStatictisData1 +
                '}';
    }
}
